const mongoose = require('mongoose')

const UserSchema = new mongoose.Schema({
  id: { type: String, required: true, unique: true },
  key: { type: String, required: true },
  allowedTilesets: [{ type: String }]
})

const User = mongoose.model('User', UserSchema)

module.exports = User
